package com.ecoolex.hotel.saas.ws;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.hotel.saas.core.manager.StoreMarketingManager;
import com.ecoolex.hotel.saas.entity.StoreMarketing;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class StoreMarketingServiceImpl implements StoreMarketingService{

    @Autowired
    private StoreMarketingManager storeMarketingManager;

    @Override
    public StoreMarketing get(Integer id) {
        return storeMarketingManager.get(id);
    }

    @Override
    public Pagination<StoreMarketing> query(String name, Integer storeId, Page page) {
        return storeMarketingManager.query(name,storeId,page);
    }

    @Override
    public List<StoreMarketing> query(Integer storeId, Integer size) {
        return storeMarketingManager.query(storeId, size);
    }

    @Override
    public StoreMarketing add(StoreMarketing record, String createUser) throws BizException {
        return storeMarketingManager.add(record,createUser);
    }

    @Override
    public StoreMarketing edit(StoreMarketing record, String updateUser) throws BizException {
        return storeMarketingManager.edit(record,updateUser);
    }

    @Override
    public void delete(StoreMarketing record, String updateUser) throws BizException {
        storeMarketingManager.delete(record,updateUser);
    }
}
